libxc/restore: split read/handle qemu info
authorYang Hongyang <yanghy@cn.fujitsu.com>
Thu, 14 May 2015 08:55:16 +0000 (16:55 +0800)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 14 May 2015 12:04:15 +0000 (13:04 +0100)
commitc5c5a040947730049074a9eed643e913d4eaaa66
tree5459332f2cb2611f56a948a2cbf0370c39ba3d79
parent9ab42c93ae865e73d694abec7e07286ddbdf0eef
libxc/restore: split read/handle qemu info

Split read/handle qemu info. The receiving of qemu info
should be done while we receive the migration stream,
handle_qemu will be called when the stream complete.
Otherwise, it will break Remus because read_record()
won't read qemu info and stream_complete will be called
at failover.

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
CC: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_sr_common.h
tools/libxc/xc_sr_restore.c
tools/libxc/xc_sr_restore_x86_hvm.c